{include file="header.html"}
<script type="text/javascript" src="index.php?act=jslang"></script>
<script type="text/javascript">

    $(function(){
        $('#monitor_define_form').validate({
            errorPlacement: function(error, element){
                $(element).next('.field_notice').hide();
                $(element).after(error);
            },

            onkeyup    : false,
            rules : {
                Name : {
                    required: true
                },
                Url : {
                    required: true
                },
                Interval:
                {
                    required:true,
                    digits:true
                }


            },
            messages : {
                Name: {
                    required: ''
                },
                Url : {
                    required: ''
                },
                Interval:
                {
                    required:'',
                    digits:'只能输入数字'
                }


            }
        });
    });

</script>
<div id="rightTop">
    <ul class="subnav">
        <li><a class="btn1" href="index.php?app=monitor_define&act=edit&id={$Mid}">返回</a></li>
        <!-- {if $monitor_define.Id} -->
        <li><a class="btn1" href="index.php?app=monitor_define&amp;act=add">{$lang.add}</a></li>
        <!-- {else} -->
        <li><span>{$lang.add}</span></li>
        <!-- {/if} -->
    </ul>
</div>
<div class="info">
    <form method="post"  enctype="multipart/form-data" id="monitor_define_form">

        <table class="infoTable">

            <tr>
                <th class="paddingT15">{$lang.Name}:</th>
                <td class="paddingT15 wordSpacing5"><input class="infoTableInput2" name="Name" type="text" id="Name" value="{$detail.Name|escape}" /></td>
            </tr>
            <tr>
                <th class="paddingT15">{$lang.Url}:</th>
                <td class="paddingT15 wordSpacing5"><input class="infoTableInput2" name="Url" type="text" id="Url" placeholder="http://" value="{$detail.Url}" ></td>
            </tr>
            <tr>
                <th class="paddingT15">{$lang.Interval}:</th>
                <td class="paddingT15 wordSpacing5"><input class="infoTableInput2" name="Interval" type="text" id="Interval" value="{$detail.Interval}" />
                <span style="font-size: 10px;">时间以s为单位</span></label>
                </td>
            </tr>
            <tr>
                <th class="paddingT15">{$lang.Status}:</th>
                <td class="paddingT15 wordSpacing5">
                    <input name="Status" type="radio" value="1" {if $detail.Status == 1}checked="checked"{/if} />
                    启用</label>
                    <input type="radio" name="Status" value="0" {if $detail.Status == 0}checked="checked"{/if} />
                    停用</label>
                </td>
            </tr>
            <tr>
                <th class="paddingT15">{$lang.Orders}:</th>
                <td class="paddingT15 wordSpacing5"><input style="width:24px" name="Orders" type="text" id="Orders" <!--{if $detail.Orders}-->value="{$detail.Orders}"<!--{else}--> value="1"<!--{/if}-->/></td>
            </tr>
            <tr>
                <th class="paddingT15">{$lang.Img}:</th>

                <td class="paddingT15 wordSpacing5">
                    {if $detail.Img}
                    <a href="{$site_url}/{$detail.Img}" target="_blank"><img src="{$site_url}/{$detail.Img}" class="makesmall"  style="width:50px;height: 50px" /></a>
                    {/if}
                    <p>
                        <input class="infoTableFile2" id="Img" type="file" name="Img"/>
                        图片大小为150*150</label>
                    </p></td>
            </tr>
         



            <tr>
                <th></th>
                <td class="ptb20"><input class="formbtn" type="submit"  value="{$lang.submit}" />
                    <input class="formbtn" type="reset" name="Reset" value="{$lang.reset}" /></td>
            </tr>
        </table>
    </form>

</div>

{include file="footer.html"}